﻿@model IEnumerable<orienta.Models.ORIDetCompendio>

@{
    ViewBag.Title = "Index";
    String estiloTR = "alt";
}
<link type="text/css" rel="stylesheet" href="@Url.Content("~/css/grilla.css")" />
<h2>Catalogo : @ViewBag.compendioPadre</h2>

<p>
    <a style="text-align:right" id="exportButton" class="button" title="Nuevo" href="../../CompendioElemento/Create" >
    <img src="../../images/nuevo.gif" alt="">Nuevo</img>
    </a>
    <a style="text-align:right" class="button" title="Regresar" href="../../Compendio" >
    <img src="../../images/regresar.jpg" width="18px" height="18px" alt="">Regresar</img>
    </a>

</p>

<div id="widget_preview_temp_2" class="wfo_widget fc picked" onmousedown="pickWidget(this)" title="Click to edit. Drag to reorder." style="z-index: 500;">
<table cellspacing="0" class="choices ">
    <thead>
    <tr>
        <th>
            Código
        </th>
        <th>
            Elemento
        </th>
        <th>
            Nombre
        </th>
        <th>
            Nombre Corto
        </th>
        <th>
            Inicio Vigencia
        </th>
        <th>
            Fin de Vigencia
        </th>
        <th>
            FEcha de registro
        </th>
        <th>Editar</th>
        <th>Detalle</th>
        <th>Eliminar</th>
    </tr>
    </thead>
    <tbody>
@foreach (var item in Model)
{
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.nIdeDetalle)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.vCodElemento)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.vNomDetalle)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.vNomCorto)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.dtFecIniVig)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.dtFecFinVig)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.dtFecReg)
        </td>
        <td>
            @Html.ActionLink("Editar", "Edit", new { id = item.nIdeDetalle })
        </td>
        <td>
            @Html.ActionLink("Detalle", "Details", new { id = item.nIdeDetalle })
        </td>
        <td>
            @Html.ActionLink("Eliminar", "Delete", new { id = item.nIdeDetalle })
        </td>
    </tr>
}
    </tbody>
</table>
</div>
